Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=temp_b
@vc=temp_c
@vd=temp_d
@end
                                        
//Ystrcpy
//Ŀģַи
//s:Դַ
//ؽĿַ
//LastError=0ȷLastErrorΪμֲ

public  string Ystrcpy(string s1)
{
	//̿κεطʹüճķʽδԼĴУһҪע⣬ҪʹеļܱʽһҪԼһµļܱʽ
     //칤ɵļܺļܱʽ
    //бܵıʽΪ@exp
     byte[] InArray ={ @ak100,@ak101,@ak102,@ak103,@ak104,@ak105,@ak106,@ak107,@ak108,@ak109,@ak110,@ak111,@ak112,@ak113,@ak114,@ak115};
     byte[] OutArray = new byte[16]; 
    //ܺıʽ͵ннܲ¼ܣʹӦȨţעת
    //Ȼ󷵻ؼܺݣüܺüӦ
    //ֻбӦȨŽתݲܱӦļܲ
    LastError = E_Dec_6(E_Hkey, E_Lkey, InArray, OutArray, KeyPath);
    if (LastError != 0 ) return "";
    
	LastError = 0;
	//ֲ
	char [] temp_char;
	short temp_a=0 ;
	short temp_b=0;
	short temp_c=0;
	short temp_d=0 ;
	/////////////////////////////////////ַ1////////////////////////////////////
	//ַĳȽַǰ1ǰ2ֲַĸֽڣ
	temp_char=s1.ToCharArray();
	if(s1.Length>0){temp_a=(byte)(temp_char[0]>>8);temp_b=(byte)(temp_char[0]&0xff);}
	if(s1.Length>1){temp_c=(byte)(temp_char[1]>>8);temp_d=(byte)(temp_char[1]&0xff);}
	//ϴַĳȽַǰ1ǰ2ֲַĸֽ
	int result ; //ֲ,ؽ
	//@fļе@pλдмʽ

		result = CalculateEx_2(OutArray, ref temp_a, ref temp_b, ref temp_c,ref temp_d,KeyPath, 16, 2000);

	@1
	if (result != 0 )
	{
		LastError = result;
		return null; //ô
	}
		if(s1.Length>0){temp_char[0]=(char)(temp_a<<8);temp_char[0]=(char)(temp_char[0]|(char)temp_b);}
	if(s1.Length>1){temp_char[1]=(char)(temp_c<<8);temp_char[1]=(char)(temp_char[1]|(char)temp_d);}

	if (s1.Length>0)
	{
		{
			s1=new string(temp_char);

		}
	}
	return s1;
}